﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Dooshion.Model;

namespace Dooshion.IBLL
{
    /// <summary>
    /// 权限认证行为接口
    /// </summary>
    public interface IAuthenticate
    {
        /// <summary>
        /// 登录
        /// </summary>
        void UserLogin(string userName, string userPwd);
        /// <summary>
        /// 登出
        /// </summary>
        void UserLogout();
        /// <summary>
        /// 根据用户Id得到模块信息
        /// </summary>
        List<CP_Modules> GetModuleByUserId(int userId);
        /// <summary>
        /// 根据用户Id得到角色信息
        /// </summary>
        List<CP_Role> GetRolesByUserId(int userId);

        /// <summary>
        /// 验证OA登录
        /// </summary>
        /// <returns></returns>
        bool AuthOALogin();
        /// <summary>
        /// 登录OA
        /// </summary>
        void OALogin();
    }
}
